<template>
  <div :class="b()">
    <el-radio-group v-model="text"
                    :size="size"
                    @click.native="handleClick"
                    :disabled="disabled">
      <component :is="componentName"
                 v-for="(item,index) in dic"
                 :value="item[valueKey]"
                 :border="border"
                 :readonly="readonly"
                 :disabled="item[disabledKey]"
                 :key="index">{{ item[labelKey] }}
      </component>
    </el-radio-group>
  </div>
</template>

<script>
import create from "../../core/create.js";
import props from "../../core/common/props.js";
import event from "../../core/common/event.js";

export default create({
  name: "radio",
  mixins: [props(), event()],
  data() {
    return {
      name: 'radio',
    };
  },
  props: {
    modelValue: {}
  },
  watch: {},
  created() {
  },
  mounted() {
  },
  methods: {}
});
</script>